﻿#ifndef LOADER_H
#define LOADER_H
#include <QVector>
#include <QString>
#include "event.h"
#include "plan.h"
#include "todolist.h"
#include "mclock.h"
class Loader {
private:
    static void chk_crtDir();//检查目录是否存在
public:
    static QVector<Event> loadEvents(QString path);
    static QVector<Plan> loadPlans(QString path);
    static QVector<TODOList> loadTODOList(QString path);
    static void saveEvents(QVector<Event> & events,QString path);
    static void savePlans(QVector<Plan> & plans,QString path) ;
    static void saveTODOList(QVector<TODOList> & todolists,QString path);
    static void saveClock(QVector<Clock> & clks,QString path);
    static QVector<Clock> loadClocks(QString path);
};

#endif // LOADER_H
